package the.broccoli.et.domain.repository;

import com.github.pagehelper.Page;
import the.broccoli.et.domain.model.UserEventStatistic;
import the.broccoli.et.infrastructure.persistent.model.EventTrigger;
import the.broccoli.et.interfaces.dto.EventTriggerCondition;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author lei.liu
 * @date 2021/7/20
 */
public interface EventTriggerRepository {
    int save(EventTrigger eventTrigger);

    Page<EventTrigger> selectListPage(EventTriggerCondition condition);

    List<UserEventStatistic> listUserEventStatistic(String eventCode, LocalDateTime start, LocalDateTime end);
}
